<?php
/* Smarty version 3.1.30, created on 2017-04-20 22:12:45
  from "D:\phpStudy\WWW\lyb\app\home\view\index\index.html" */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.30',
  'unifunc' => 'content_58f9a2dd6df388_99128533',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '8eab45dbdc9b8f8bc66781ed4042167523510b99' => 
    array (
      0 => 'D:\\phpStudy\\WWW\\lyb\\app\\home\\view\\index\\index.html',
      1 => 1492753467,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_58f9a2dd6df388_99128533 (Smarty_Internal_Template $_smarty_tpl) {
echo '<?php ';?>session_start() <?php echo '?>';?>
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">

    <title>Jumbotron Template for Bootstrap</title>

    <!-- Bootstrap core CSS -->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <link href="../../assets/css/ie10-viewport-bug-workaround.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="jumbotron.css" rel="stylesheet">

    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <!--[if lt IE 9]><?php echo '<script'; ?>
 src="../../assets/js/ie8-responsive-file-warning.js"><?php echo '</script'; ?>
><![endif]-->
    <?php echo '<script'; ?>
 src="jquery.min.js"><?php echo '</script'; ?>
>

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <?php echo '<script'; ?>
 src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"><?php echo '</script'; ?>
>
      <?php echo '<script'; ?>
 src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"><?php echo '</script'; ?>
>
    <![endif]-->
  </head>

  <body>

    <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">留言板</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <form class="navbar-form navbar-right">
            <div class="form-group">
         
            <a href="denglu.php" class="btn btn-success">登录</a>
            <a href="zhuche.php" class="btn btn-success">注册</a>
            <a href="zhuxiao.php" class="btn btn-success">注销</a>
          </form>
        </div><!--/.navbar-collapse -->
      </div>
    </nav>

    <!-- Main jumbotron for a primary marketing message or call to action -->
    <div class="jumbotron">
      <div class="container">
        <h1>老铁点个赞!</h1>
        <p>欢迎<?php echo '<?php ';?>echo isset($_SESSION['zhanghao'])?$_SESSION['zhanghao']:'老铁点个赞' <?php echo '?>';?></p>
        <p><a class="btn btn-primary btn-lg" href="add.php" role="button">添加留言 &raquo;</a></p>
      </div>
    </div>

<div class="container">
      <!-- Example row of columns -->
      <div class="row">
      <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['res']->value, 'v');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['v']->value) {
?>
        <div class="col-md-4">
        
          <h1><?php echo $_smarty_tpl->tpl_vars['v']->value['title'];?>
</h1>
          <p><?php echo $_smarty_tpl->tpl_vars['v']->value['content'];?>
</p>
          <span><?php echo $_smarty_tpl->tpl_vars['v']->value['zuozhe'];?>
</span>-<span><?php echo $_smarty_tpl->tpl_vars['v']->value['time'];?>
</span>
          <a class="btn btn-default" href="index.php?m=home&c=index&a=up&id=<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
" role="button"><span>修改</span></a>
          <a class="btn btn-default" href="index.php?m=home&c=index&a=del&id=<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
" role="button"><span>删除</span></a>
          
        </div>
        <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>


<hr>

      <footer>
        <p>&copy; 2016 Company, Inc.</p>
      </footer>
    <!-- /container -->


    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <?php echo '<script'; ?>
 src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"><?php echo '</script'; ?>
>
    <?php echo '<script'; ?>
>window.jQuery || document.write('<?php echo '<script'; ?>
 src="../../assets/js/vendor/jquery.min.js"><\/script>')<?php echo '</script'; ?>
>
    <?php echo '<script'; ?>
 src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"><?php echo '</script'; ?>
>
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <?php echo '<script'; ?>
 src="../../assets/js/ie10-viewport-bug-workaround.js"><?php echo '</script'; ?>
>
    </body>
</html>
















      
  <?php }
}
